﻿<Window x:Class="NetNamedPipeBindingHost.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Host" Height="223" Width="526" Background="Gray" Loaded="Window_Loaded" Unloaded="Window_Unloaded">
    <Grid>
        <TextBlock Height="36" HorizontalAlignment="Left" Name="txtClient" Text="Host (Receiver) Application" FontSize="20" FontWeight="Bold"  VerticalAlignment="Top" />
        <TextBlock Height="26" HorizontalAlignment="Left" Margin="78,33,0,0" Name="txtCommunicationDate" Text="{Binding  Path=LastReadDate, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, StringFormat=\{0:F\}}" VerticalAlignment="Top" Width="396" />
        <TextBlock Height="26" HorizontalAlignment="Left" Margin="78,63,0,0" Name="txtCommunicationBy" Text="{Binding  Path=LastReadBy, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, StringFormat=\{0:F\}}" VerticalAlignment="Top" Width="396" />
        <TextBlock Height="20" HorizontalAlignment="Left" Name="txtHostOnline" Text="Offline :(" VerticalAlignment="Bottom" Width="48" Margin="0,0,0,0" />
        <Button Content="Start Host" Height="48" HorizontalAlignment="Left" Margin="23,105,0,0" Name="btnStart" VerticalAlignment="Top" Width="210" Click="btnStart_Click" />
        <Button Content="Stop Host" Height="48" HorizontalAlignment="Left" Margin="249,105,0,0" IsEnabled="False" Name="btnStop" VerticalAlignment="Top" Width="225" Click="btnStop_Click" />
        <Label Content="Message:" Height="28" HorizontalAlignment="Left" Margin="12,33,0,0" Name="lblMessage" VerticalAlignment="Top" />
        <Label Content="Received:" Height="28" HorizontalAlignment="Left" Margin="12,63,0,0" Name="lblDate" VerticalAlignment="Top" />
    </Grid>
</Window>

